package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class AdminRnoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public AdminRnoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andRanoIsNull() {
            addCriterion("rano is null");
            return (Criteria) this;
        }

        public Criteria andRanoIsNotNull() {
            addCriterion("rano is not null");
            return (Criteria) this;
        }

        public Criteria andRanoEqualTo(String value) {
            addCriterion("rano =", value, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoNotEqualTo(String value) {
            addCriterion("rano <>", value, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoGreaterThan(String value) {
            addCriterion("rano >", value, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoGreaterThanOrEqualTo(String value) {
            addCriterion("rano >=", value, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoLessThan(String value) {
            addCriterion("rano <", value, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoLessThanOrEqualTo(String value) {
            addCriterion("rano <=", value, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoLike(String value) {
            addCriterion("rano like", value, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoNotLike(String value) {
            addCriterion("rano not like", value, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoIn(List<String> values) {
            addCriterion("rano in", values, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoNotIn(List<String> values) {
            addCriterion("rano not in", values, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoBetween(String value1, String value2) {
            addCriterion("rano between", value1, value2, "rano");
            return (Criteria) this;
        }

        public Criteria andRanoNotBetween(String value1, String value2) {
            addCriterion("rano not between", value1, value2, "rano");
            return (Criteria) this;
        }

        public Criteria andRnoIsNull() {
            addCriterion("rno is null");
            return (Criteria) this;
        }

        public Criteria andRnoIsNotNull() {
            addCriterion("rno is not null");
            return (Criteria) this;
        }

        public Criteria andRnoEqualTo(String value) {
            addCriterion("rno =", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoNotEqualTo(String value) {
            addCriterion("rno <>", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoGreaterThan(String value) {
            addCriterion("rno >", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoGreaterThanOrEqualTo(String value) {
            addCriterion("rno >=", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoLessThan(String value) {
            addCriterion("rno <", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoLessThanOrEqualTo(String value) {
            addCriterion("rno <=", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoLike(String value) {
            addCriterion("rno like", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoNotLike(String value) {
            addCriterion("rno not like", value, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoIn(List<String> values) {
            addCriterion("rno in", values, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoNotIn(List<String> values) {
            addCriterion("rno not in", values, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoBetween(String value1, String value2) {
            addCriterion("rno between", value1, value2, "rno");
            return (Criteria) this;
        }

        public Criteria andRnoNotBetween(String value1, String value2) {
            addCriterion("rno not between", value1, value2, "rno");
            return (Criteria) this;
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(String value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(String value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(String value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(String value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(String value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(String value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLike(String value) {
            addCriterion("ano like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotLike(String value) {
            addCriterion("ano not like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<String> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<String> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(String value1, String value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(String value1, String value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andRatimeIsNull() {
            addCriterion("raTime is null");
            return (Criteria) this;
        }

        public Criteria andRatimeIsNotNull() {
            addCriterion("raTime is not null");
            return (Criteria) this;
        }

        public Criteria andRatimeEqualTo(Date value) {
            addCriterionForJDBCTime("raTime =", value, "ratime");
            return (Criteria) this;
        }

        public Criteria andRatimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("raTime <>", value, "ratime");
            return (Criteria) this;
        }

        public Criteria andRatimeGreaterThan(Date value) {
            addCriterionForJDBCTime("raTime >", value, "ratime");
            return (Criteria) this;
        }

        public Criteria andRatimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("raTime >=", value, "ratime");
            return (Criteria) this;
        }

        public Criteria andRatimeLessThan(Date value) {
            addCriterionForJDBCTime("raTime <", value, "ratime");
            return (Criteria) this;
        }

        public Criteria andRatimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("raTime <=", value, "ratime");
            return (Criteria) this;
        }

        public Criteria andRatimeIn(List<Date> values) {
            addCriterionForJDBCTime("raTime in", values, "ratime");
            return (Criteria) this;
        }

        public Criteria andRatimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("raTime not in", values, "ratime");
            return (Criteria) this;
        }

        public Criteria andRatimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("raTime between", value1, value2, "ratime");
            return (Criteria) this;
        }

        public Criteria andRatimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("raTime not between", value1, value2, "ratime");
            return (Criteria) this;
        }

        public Criteria andRadateIsNull() {
            addCriterion("raDate is null");
            return (Criteria) this;
        }

        public Criteria andRadateIsNotNull() {
            addCriterion("raDate is not null");
            return (Criteria) this;
        }

        public Criteria andRadateEqualTo(Date value) {
            addCriterionForJDBCDate("raDate =", value, "radate");
            return (Criteria) this;
        }

        public Criteria andRadateNotEqualTo(Date value) {
            addCriterionForJDBCDate("raDate <>", value, "radate");
            return (Criteria) this;
        }

        public Criteria andRadateGreaterThan(Date value) {
            addCriterionForJDBCDate("raDate >", value, "radate");
            return (Criteria) this;
        }

        public Criteria andRadateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("raDate >=", value, "radate");
            return (Criteria) this;
        }

        public Criteria andRadateLessThan(Date value) {
            addCriterionForJDBCDate("raDate <", value, "radate");
            return (Criteria) this;
        }

        public Criteria andRadateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("raDate <=", value, "radate");
            return (Criteria) this;
        }

        public Criteria andRadateIn(List<Date> values) {
            addCriterionForJDBCDate("raDate in", values, "radate");
            return (Criteria) this;
        }

        public Criteria andRadateNotIn(List<Date> values) {
            addCriterionForJDBCDate("raDate not in", values, "radate");
            return (Criteria) this;
        }

        public Criteria andRadateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("raDate between", value1, value2, "radate");
            return (Criteria) this;
        }

        public Criteria andRadateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("raDate not between", value1, value2, "radate");
            return (Criteria) this;
        }

        public Criteria andRastateIsNull() {
            addCriterion("rastate is null");
            return (Criteria) this;
        }

        public Criteria andRastateIsNotNull() {
            addCriterion("rastate is not null");
            return (Criteria) this;
        }

        public Criteria andRastateEqualTo(String value) {
            addCriterion("rastate =", value, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateNotEqualTo(String value) {
            addCriterion("rastate <>", value, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateGreaterThan(String value) {
            addCriterion("rastate >", value, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateGreaterThanOrEqualTo(String value) {
            addCriterion("rastate >=", value, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateLessThan(String value) {
            addCriterion("rastate <", value, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateLessThanOrEqualTo(String value) {
            addCriterion("rastate <=", value, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateLike(String value) {
            addCriterion("rastate like", value, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateNotLike(String value) {
            addCriterion("rastate not like", value, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateIn(List<String> values) {
            addCriterion("rastate in", values, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateNotIn(List<String> values) {
            addCriterion("rastate not in", values, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateBetween(String value1, String value2) {
            addCriterion("rastate between", value1, value2, "rastate");
            return (Criteria) this;
        }

        public Criteria andRastateNotBetween(String value1, String value2) {
            addCriterion("rastate not between", value1, value2, "rastate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}